package com.zw.stock_sell_storage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zw.stock_sell_storage.dto.TypeDto;
import com.zw.stock_sell_storage.mapper.TypeMapper;
import com.zw.stock_sell_storage.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, TypeDto> implements ITypeService {
    @Autowired
    TypeMapper typeMapper;
    @Override
    public List<TypeDto> queryType(int typeCode) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("type_code",typeCode);
        return typeMapper.selectList(queryWrapper);
    }
}
